from get_node import StructNode, UrlNode, get_table, TextNode, JsonList, get_td

biaoti_font_size = "16px"
table_font_size = "11pt"
background = "rgb(1, 74, 150)"


def get_content1(info) -> str:
    content = JsonList()
    content.clean()
    content.append(
        TextNode(text="一、基本信息", font_size=biaoti_font_size, type="h1"))
    col1_table = StructNode(type="table", colSizes=[180, 0])
    name = StructNode(type="tr")
    name.add_child(
        get_td(text="姓名",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    name.add_child(
        get_td(text=info['base_info']['name'], font_size=table_font_size))
    gender = StructNode(type="tr")
    gender.add_child(
        get_td(text="性别",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gender.add_child(
        get_td(text=info['base_info']['gender'], font_size=table_font_size))
    both = StructNode(type="tr")
    both.add_child(
        get_td(text="出生年月",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    both.add_child(
        get_td(text=info['base_info']['both'], font_size=table_font_size))
    gongsi = StructNode(type="tr")
    gongsi.add_child(
        get_td(text="所属公司",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gongsi.add_child(
        get_td(text=info['base_info']['gongsi'], font_size=table_font_size))
    zhiwu = StructNode(type="tr")
    zhiwu.add_child(
        get_td(text="职务",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    zhiwu.add_child(
        get_td(text=info['base_info']['zhiwu'], font_size=table_font_size))
    col1_table.add_child(name)
    col1_table.add_child(gender)
    col1_table.add_child(both)
    col1_table.add_child(gongsi)
    col1_table.add_child(zhiwu)
    col1 = StructNode(type="layout_child", width="50%")
    col1.add_child(col1_table)
    col2_table = StructNode(type="table", colSizes=[180, 0])
    name = StructNode(type="tr")
    name.add_child(
        get_td(text="职称",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    name.add_child(
        get_td(text=info['base_info']['zhicheng'], font_size=table_font_size))
    gender = StructNode(type="tr")
    gender.add_child(
        get_td(text="参加工作时间",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gender.add_child(
        get_td(text=info['base_info']['gzsj'], font_size=table_font_size))
    both = StructNode(type="tr")
    both.add_child(
        get_td(text="手机号",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    both.add_child(
        get_td(text=info['base_info']['phone'], font_size=table_font_size))
    gongsi = StructNode(type="tr")
    gongsi.add_child(
        get_td(text="电子邮箱",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gongsi.add_child(
        get_td(text=info['base_info']['email'], font_size=table_font_size))
    col2_table.add_child(name)
    col2_table.add_child(gender)
    col2_table.add_child(both)
    col2_table.add_child(gongsi)
    col2 = StructNode(type="layout_child", width="50%")
    col2.add_child(col2_table)
    layout = StructNode(type="layout", layout="1-1")
    layout.add_child(col1)
    layout.add_child(col2)
    content.append(layout)
    content.append(TextNode(type="p"))
    content.append(TextNode(type="p"))
    content.append(
        TextNode(text="二、教育经历", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['毕业时间', '毕业院校', '所学专业', '学位', '学历'],
                  data=info['jyjl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="三、专业", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['专业', '细分专业'],
                  data=info['zy_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="四、职业资格", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['证书名称', '签发日期', '证书类别'],
                  data=info['zyzg_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="五、工作经历", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['开始时间', '结束时间', '所在单位', '部门 （项目部）', '岗位'],
                  data=info['gzjl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="六、项目业绩", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(
            titles=['开始时间', '结束时间', '项目名称', '行业分类', '担任角色', '承担主要工作内容及成绩'],
            data=info['xmyj_list'],
            titles_backound="rgb(1, 74, 150)",
            titles_font_size=table_font_size,
            titles_color="white",
            data_font_size=table_font_size))
    content.append(
        TextNode(text="七、获奖情况", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['获奖名称', '奖项类型', '奖励等级', '获奖时间', '担任角色', '批准单位'],
                  data=info['hjqk_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="八、主编或参编标准", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['标准名称', '标准类别', '发布日期', '承担角色', '负责内容'],
                  data=info['zb_or_cb_bz'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="九、代表性工法", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['工法名称', '授予单位', '获取时间', '工法编号', '完成单位'],
                  data=info['dbxgf_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十、专利及软著", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['专利/软著名称', '知识产权类型', '授权/登记时间', '完成单位'],
                  data=info['zl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十一、论文及著作", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['论文/著作', '刊物/出版社名称', '发表/出版时间', '完成单位'],
                  data=info['lw_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十二、QC 成果", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['成果名称', '完成时间', '完成单位', '是否获奖', '奖项名称'],
                  data=info['qc_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(UrlNode(url="https://www.google.com/", text="专家库系统链接"))
    return content.to_json().replace(': ', ':')


def get_content2(info) -> str:
    content = JsonList()
    content.clean()
    content.append(
        TextNode(text="一、基本信息", font_size=biaoti_font_size, type="h1"))
    col1_table = StructNode(type="table", colSizes=[180, 0])
    name = StructNode(type="tr")
    name.add_child(
        get_td(text="姓名",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    name.add_child(
        get_td(text=info['base_info']['name'], font_size=table_font_size))
    gender = StructNode(type="tr")
    gender.add_child(
        get_td(text="性别",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gender.add_child(
        get_td(text=info['base_info']['gender'], font_size=table_font_size))
    both = StructNode(type="tr")
    both.add_child(
        get_td(text="出生年月",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    both.add_child(
        get_td(text=info['base_info']['both'], font_size=table_font_size))
    gongsi = StructNode(type="tr")
    gongsi.add_child(
        get_td(text="所属公司",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gongsi.add_child(
        get_td(text=info['base_info']['gongsi'], font_size=table_font_size))
    zhiwu = StructNode(type="tr")
    zhiwu.add_child(
        get_td(text="职务",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    zhiwu.add_child(
        get_td(text=info['base_info']['zhiwu'], font_size=table_font_size))
    col1_table.add_child(name)
    col1_table.add_child(gender)
    col1_table.add_child(both)
    col1_table.add_child(gongsi)
    col1_table.add_child(zhiwu)
    col1 = StructNode(type="layout_child", width="50%")
    col1.add_child(col1_table)
    col2_table = StructNode(type="table", colSizes=[180, 0])
    name = StructNode(type="tr")
    name.add_child(
        get_td(text="职称",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    name.add_child(
        get_td(text=info['base_info']['zhicheng'], font_size=table_font_size))
    gender = StructNode(type="tr")
    gender.add_child(
        get_td(text="参加工作时间",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gender.add_child(
        get_td(text=info['base_info']['gzsj'], font_size=table_font_size))
    both = StructNode(type="tr")
    both.add_child(
        get_td(text="手机号",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    both.add_child(
        get_td(text=info['base_info']['phone'], font_size=table_font_size))
    gongsi = StructNode(type="tr")
    gongsi.add_child(
        get_td(text="电子邮箱",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gongsi.add_child(
        get_td(text=info['base_info']['email'], font_size=table_font_size))
    col2_table.add_child(name)
    col2_table.add_child(gender)
    col2_table.add_child(both)
    col2_table.add_child(gongsi)
    col2 = StructNode(type="layout_child", width="50%")
    col2.add_child(col2_table)
    layout = StructNode(type="layout", layout="1-1")
    layout.add_child(col1)
    layout.add_child(col2)
    content.append(layout)
    content.append(TextNode(type="p"))
    content.append(TextNode(type="p"))
    content.append(
        TextNode(text="二、教育经历", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['毕业时间', '毕业院校', '所学专业', '学位', '学历'],
                  data=info['jyjl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="三、业务及细分方向", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['业务', '细分方向'],
                  data=info['zy_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="四、职业资格", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['证书名称', '签发日期', '证书类别'],
                  data=info['zyzg_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="五、工作经历", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['开始时间', '结束时间', '所在单位', '部门 （项目部）', '岗位'],
                  data=info['gzjl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="六、项目业绩", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=[
            '开始时间', '结束时间', '项目名称', '行业分类', '项目规模 （万元）', '担任角色', '承担主要工作内容及成绩'
        ],
                  data=info['xmyj_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="七、获奖情况", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['获奖名称', '奖项类型', '奖励等级', '获奖时间', '担任角色', '批准单位'],
                  data=info['hjqk_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="八、主编或参编标准", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['标准名称', '标准类别', '发布日期', '承担角色', '负责内容'],
                  data=info['zb_or_cb_bz'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="九、代表性工法", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['工法名称', '授予单位', '获取时间', '工法编号', '完成单位'],
                  data=info['dbxgf_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十、专利及软著", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['专利/软著名称', '知识产权类型', '授权/登记时间', '完成单位'],
                  data=info['zl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十一、论文及著作", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['论文/著作', '刊物/出版社名称', '发表/出版时间', '完成单位'],
                  data=info['lw_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十二、QC 成果", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['成果名称', '完成时间', '完成单位', '是否获奖', '奖项名称'],
                  data=info['qc_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(UrlNode(url="https://www.google.com/", text="专家库系统链接"))
    return content.to_json().replace(': ', ':')


def get_content3(info) -> str:
    content = JsonList()
    content.clean()
    content.append(
        TextNode(text="一、基本信息", font_size=biaoti_font_size, type="h1"))
    col1_table = StructNode(type="table", colSizes=[180, 0])
    name = StructNode(type="tr")
    name.add_child(
        get_td(text="姓名",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    name.add_child(
        get_td(text=info['base_info']['name'], font_size=table_font_size))
    gender = StructNode(type="tr")
    gender.add_child(
        get_td(text="性别",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gender.add_child(
        get_td(text=info['base_info']['gender'], font_size=table_font_size))
    both = StructNode(type="tr")
    both.add_child(
        get_td(text="出生年月",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    both.add_child(
        get_td(text=info['base_info']['both'], font_size=table_font_size))
    gongsi = StructNode(type="tr")
    gongsi.add_child(
        get_td(text="所属公司",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gongsi.add_child(
        get_td(text=info['base_info']['gongsi'], font_size=table_font_size))
    zhiwu = StructNode(type="tr")
    zhiwu.add_child(
        get_td(text="职务",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    zhiwu.add_child(
        get_td(text=info['base_info']['zhiwu'], font_size=table_font_size))
    col1_table.add_child(name)
    col1_table.add_child(gender)
    col1_table.add_child(both)
    col1_table.add_child(gongsi)
    col1_table.add_child(zhiwu)
    col1 = StructNode(type="layout_child", width="50%")
    col1.add_child(col1_table)
    col2_table = StructNode(type="table", colSizes=[180, 0])
    name = StructNode(type="tr")
    name.add_child(
        get_td(text="职称",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    name.add_child(
        get_td(text=info['base_info']['zhicheng'], font_size=table_font_size))
    gender = StructNode(type="tr")
    gender.add_child(
        get_td(text="参加工作时间",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gender.add_child(
        get_td(text=info['base_info']['gzsj'], font_size=table_font_size))
    both = StructNode(type="tr")
    both.add_child(
        get_td(text="手机号",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    both.add_child(
        get_td(text=info['base_info']['phone'], font_size=table_font_size))
    gongsi = StructNode(type="tr")
    gongsi.add_child(
        get_td(text="电子邮箱",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gongsi.add_child(
        get_td(text=info['base_info']['email'], font_size=table_font_size))
    zhiwu = StructNode(type="tr")
    zhiwu.add_child(
        get_td(text="职级",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    zhiwu.add_child(
        get_td(text=info['base_info']['zhiji'], font_size=table_font_size))
    col2_table.add_child(name)
    col2_table.add_child(gender)
    col2_table.add_child(both)
    col2_table.add_child(gongsi)
    col2_table.add_child(zhiwu)
    col2 = StructNode(type="layout_child", width="50%")
    col2.add_child(col2_table)
    layout = StructNode(type="layout", layout="1-1")
    layout.add_child(col1)
    layout.add_child(col2)
    content.append(layout)
    content.append(TextNode(type="p"))
    content.append(TextNode(type="p"))
    content.append(
        TextNode(text="二、教育经历", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['毕业时间', '毕业院校', '所学专业', '学位', '学历'],
                  data=info['jyjl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="三、专业及擅长领域", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['申报专业', '擅长领域'],
                  data=info['zy_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="四、职业资格", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['证书名称', '签发日期', '证书类别'],
                  data=info['zyzg_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="五、工作经历", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['开始时间', '结束时间', '所在单位', '部门 （项目部）', '岗位'],
                  data=info['gzjl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="六、项目业绩", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=[
            '开始时间', '结束时间', '项目名称', '行业分类', '项目规模 （万元）', '担任角色', '承担主要工作内容及成绩'
        ],
                  data=info['xmyj_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="七、获奖情况", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['获奖名称', '奖项类型', '奖励等级', '获奖时间', '担任角色', '批准单位'],
                  data=info['hjqk_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="八、主编或参编标准", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['标准名称', '标准类别', '发布日期', '承担角色', '负责内容'],
                  data=info['zb_or_cb_bz'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="九、代表性工法", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['工法名称', '授予单位', '获取时间', '工法编号', '完成单位'],
                  data=info['dbxgf_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十、专利及软著", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['专利/软著名称', '知识产权类型', '授权/登记时间', '完成单位'],
                  data=info['zl_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十一、论文及著作", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['论文/著作', '刊物/出版社名称', '发表/出版时间', '完成单位'],
                  data=info['lw_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十二、QC 成果", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['成果名称', '完成时间', '完成单位', '是否获奖', '奖项名称'],
                  data=info['qc_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十三、外部专家", font_size=biaoti_font_size, type="h1"))
    content.append(
        get_table(titles=['外部专家名称', '聘任起始时间', '聘任终止时间'],
                  data=info['wbzj_list'],
                  titles_backound="rgb(1, 74, 150)",
                  titles_font_size=table_font_size,
                  titles_color="white",
                  data_font_size=table_font_size))
    content.append(
        TextNode(text="十四、fz流程", font_size=biaoti_font_size, type="h1"))
    col1_table = StructNode(type="table", colSizes=[180, 0])
    name = StructNode(type="tr")
    name.add_child(
        get_td(text="分支条件",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    name.add_child(
        get_td(text=info['fzlc']['fztj'], font_size=table_font_size))
    gender = StructNode(type="tr")
    gender.add_child(
        get_td(text="流转状态",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gender.add_child(
        get_td(text=info['fzlc']['lzzt'], font_size=table_font_size))
    col1_table.add_child(name)
    col1_table.add_child(gender)
    col1 = StructNode(type="layout_child", width="50%")
    col1.add_child(col1_table)
    col2_table = StructNode(type="table", colSizes=[180, 0])
    name = StructNode(type="tr")
    name.add_child(
        get_td(text="当前节点负责人",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    name.add_child(
        get_td(text=info['fzlc']['fzr'], font_size=table_font_size))
    gender = StructNode(type="tr")
    gender.add_child(
        get_td(text="流程结束时间",
               font_size=table_font_size,
               color="white",
               background="rgb(1, 74, 150)"))
    gender.add_child(
        get_td(text=info['fzlc']['jssj'], font_size=table_font_size))
    col2_table.add_child(name)
    col2_table.add_child(gender)
    col2 = StructNode(type="layout_child", width="50%")
    col2.add_child(col2_table)
    layout = StructNode(type="layout", layout="1-1")
    layout.add_child(col1)
    layout.add_child(col2)
    content.append(layout)
    content.append(UrlNode(url="https://www.google.com/", text="专家库系统链接"))
    return content.to_json().replace(': ', ':')
